/**
 * Created by charlie on 18-1-16.
 */
import { Actions } from 'react-native-router-flux'
export default {
    namespace:'thisDialog',
    state:{
        thisShow:false,
        beChecked:false
    },
    subscriptions:{

    },
    effects:{
        *thisCancled({payload},{call,put,select}){
            yield put({type:'indexPage/thisTipGone'})
            yield put({type:'thisCancledSure'})
        },
    },
    reducers:{
        thisCancledSure(state,{payload}){
            return {...state,thisShow:false,beChecked:true}
        },
        thisSure(state,{payload}){
            return {...state,thisShow:false,beChecked:true}
        },
        thisInit(state,{payload}){
            return {...state,beChecked:false}
        }
    }
}